<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{$title} - {$sitename}
    </title>
    <meta name="keywords" content="{$mname}" />
    <link type="text/css" rel="stylesheet" href="template/style/build/base.css" />
    <link type="text/css" rel="stylesheet" href="template/style/build/main.css" />
    <link rel="stylesheet" type="text/css" href="template/style/ht.css" />
    <link rel="stylesheet" type="text/css" href="template/style/topic.css" />
	<script src="inc/js/jquery.js"></script>  
</head>
<script language="JavaScript">
<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) 
field.value = field.value.substring(0,maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
// End -->
</script>

  <body class="profile">
    <div id="tongxue">
      <!--StartHeader-->
{xingTemplate menu} 

	  <div class="index_header">
	  <div style="overflow:hidden;width:795px;margin:0 auto;text-align:left;background:#42DDE6;">
		<div style="float:left;padding:20px 0 0 20px;"><img src="face/{$uid}.jpg" onerror=src="face/noavatar.gif" width=60 height=60 style="padding:1px;border:solid 1px #FFF;" /></div>
		<form method="POST" action="topic.php?id={$cid}&action=addlog">
		<div style="float:left;padding-left:20px;padding-top:20px;">
		{$notice}
		<h3 style="font-size:14px;">我要叽歪一下<strong>“{$title}”</strong></h3>
		<textarea style="width:400px; height:50px;" name="logcontent"   onkeydown="textCounter(this.form.logcontent,this.form.remLen,160)" onkeyup="textCounter(this.form.logcontent,this.form.remLen,160)"></textarea>
		<input type="hidden" name="uploadvalue" id="uploadvalue" value="" />
		<div id="target">上传图片</div>
		{if !empty($cookienum)}
		<div id="open" style="display:none;"><iframe width="100%" height="75" frameborder="0" src="upload3.php?cid={$cid}"></iframe>
		</div>
		{else}
		<div id="open" style="display:none;">登录后才可以分享图片哦！</div>
		{/if}
		<script>
		$("#target").click(function () {
		$("#open").toggle();
		});
		</script>
		</div>
		<div style="float:left; padding:40px 20px;"><input type="submit" value="发 布"  style="height:50px; width:60px;" name="" /></div>
<div style="float:left;padding-top:40px;padding-left:20px;">还剩<input style="font-size:30px;border:none;background:none;" readOnly maxLength="1" size="1" value="160" name="remLen">字。</div>
		</form>
		</div>
        </div>
 
	<div id="body">
        <div id="container">
          <div class="clearline">
          </div>
          <div id="mainWrapper" class="clearfix">
            <div id="conWrapper">
             {$nosay} 	 
              <div id="txweblistWrapper">
			  <div class="manu">
	{$page_url}
</div>
                <ul id="txweblist" class="userHome clearfix">
				{loop $mlogs as $key=>$mlog} 
                  <li class="">
                    <div class="status_reply_list_wrap">
                      <p class="">
                        <a href="user.php?id={$mlog['uid']}" class="username">{$mlog['truename']}</a>:@
                        <a href="topic.php?id={$mlog['cid']}">{$mlog['cname']}</a>{if !empty($mlog['aid'])}<br /><img src="{$mlog['photo']['filepath']}" style="width:100px;padding:5px;border:solid 1px #999;" />{else}{/if}<br />{$mlog['content']}
                      </p>{loop $mlog['comms'] as $key=>$comm} 
                      <div class="status_reply">
                        <div class="top">
                          <div class="c">
                          </div>
                        </div>
                        <div class="cont">
                          <div class="c">
                            <div class="innercont">
                              <p>
                                <a href="user.php?id={$comm['uid']}">{$qiUser->getUserName($comm['uid'])}</a>：
                                <span>{$comm['content']}
                                </span>
                                <span class="option2">{date('Y-m-d H:i:s',$comm['cTime'])}
                                </span>
                              </p>
                            </div>
                          </div>
                          <div style='display:none;'>
                          </div>
                        </div>
                        <div class='bottom'>
                          <div class='c'>
                          </div>
                        </div>
                      </div>{/loop} 
                      <span class='conTinge meta'>{date('Y-m-d H:i:s',$mlog['cTime'])} 通过{$sitename}
                        <div class='action'>
                          <a class='reply!' title='回复此消息'  href="reply.php?id={$mlog['id']}" >回复</a>
                        </div>
                      </span>
                    </div>
                  </li>{/loop} 
                </ul>
              </div>
              <div class='conBottomNav clearfix'>
                <a class='goToTop' id='toTop' href='#container'>
                  <img src='template/images/top.png' alt='回到顶部' title='回到顶部' /></a>
              </div>
            </div>
            <div id="side">
              <!--右侧话题推荐开始-->
              <div class="topicslist">
                <div class="index_title01 bold">最新话题
                  <img class="newIcon" src="template/images/transparent.gif"/>
                </div>
                <div class="topicsContent">
                  <ul>
                    {$qiCate->getNewCate()}
                  </ul>
                </div>
              </div>
              <div class="moreLink01">
                <a class="funLink" href="topic_all.php">查看更多话题</a>>>
              </div>
              <div style="text-align: left;" class="rightTxtList">
                <p class="jb">
                  <a href="#" >举报不良信息</a>
                </p>  
              </div>
              <!--右侧话题推荐结束-->
              <div class="sidebar-nav">
                <ul class="clearfix" id="mainMenu">
                  <li  class="last">
                    <a id="nav_status" class="sideNavA sideNavACurt" href="topic.php?id={$cid}">话题（{if isset($lognum)==""}0{else}{$lognum}{/if}）</a>
                  </li>
                </ul>
              </div> 
            </div>
          </div>{xingTemplate footer} 
        </div>
      </div>
    </div>
    <a href="#" id="feedbackbutton"></a>
  </body>
</html>